package cn.wei.sdd.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
//@ToString
public enum CheckStatusEnum {

//    验收状态（0：未验收，1：已验收
    CHECK_ERROR(-1,"验收失败"),
    NOT_CHECK(0, "未验收"),
    IS_Check(1, "已验收");

    private Integer status;
    private String msg;

    public static String getMsgByStatus(int status) {
        CheckStatusEnum arrObj[] = CheckStatusEnum.values();
        for (CheckStatusEnum obj : arrObj) {
            if (status == obj.getStatus().intValue()) {
                return obj.getMsg();
            }
        }
        return "";
    }
}

